package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper extends Mapper<Order> {

    List<Map<String, Object>> setmealByCount();

    long countByOrderDateRange(@Param("startDate") Date startDate, @Param("endDate") Date endDate,@Param("status") String status);

    List<Map<String,Object>> countByHotSetmeal(@Param("topN") int topN);

}
